package my.client.model;

import java.util.Set;

/**
 * @author Nilaksh Bajpai.
 */
public class Vehicle {

	/**
	 * Identifier.
	 */
	private Long id;
	 
    /**
     * Vehicle Id.
     */
    private String vin;

    /**
     * Vehicle's registered number.
     */
    private String vehicleNumber;
    
    /**
     * Vehicle's make.
     */
    private Integer make;
    
    /**
     * Vehicle's model.
     */
    private String model;
    
    /**
     * Vehicle's history.
     */
    private Set<VehicleHistory> history;

    /**
     * @return
     */
    public Long getId() {
    	return id;
    }
    
    /**
     * @param id
     */
    public void setId(Long id) {
    	this.id = id;
    }
    
    /**
     * @return the vin
     */
    public String getVin() {
        return vin;
    }

    /**
     * @param vin
     *            the vin to set
     */
    public void setVin(String vin) {
        this.vin = vin;
    }

    /**
     * @return the vehicleNumber
     */
    public String getVehicleNumber() {
        return vehicleNumber;
    }

    /**
     * @param vehicleNumber
     *            the vehicleNumber to set
     */
    public void setVehicleNumber(String vehicleNumber) {
        this.vehicleNumber = vehicleNumber;
    }
    

	/**
	 * @return the make
	 */
	public Integer getMake() {
		return make;
	}

	/**
	 * @param make the make to set
	 */
	public void setMake(Integer make) {
		this.make = make;
	}

	/**
	 * @return the model
	 */
	public String getModel() {
		return model;
	}
	
	/**
	 * @param model the model to set
	 */
	public void setModel(String model) {
		this.model = model;
	}
	
	/**
	 * @return the history
	 */
	public Set<VehicleHistory> getHistory() {
		return history;
	}
	
	/**
	 * @param history the history to set
	 */
	public void setHistory(Set<VehicleHistory> history) {
		this.history = history;
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return String
				.format("Vehicle [id=%s, vin=%s, vehicleNumber=%s, make=%s, model=%s, history=%s]",
						id, vin, vehicleNumber, make, model, history);
	}
	
}
